<?php

class yswarranty_ctl_validwarranty extends desktop_controller
{

    public $workground = "desktop_ctl_system";
    public function __construct( $app )
    {
        parent::__construct( $app );
        header( "cache-control: no-store, no-cache, must-revalidate" );
    }
    
    public function index( )
    {
        $this->finder( "yswarranty_mdl_validwarranties",
                        array(
                                "title" => app::get( "desktop" )->_( "有效保證書編號" ),
                                "actions" => array(
                                        array(
                                                "label" => app::get( "b2c" )->_( "匯入保證書編號" ),
                                                "href" => "index.php?app=yswarranty&ctl=warranty&act=importvalidwarranties",
                                                "target" => "dialog::{ title:'".app::get( "yswarranty" )->_( "匯入保證書編號" )."', width:800, height:340 }"
                                        )
                                ),
                                "use_buildin_set_tag" => false,
                                'use_buildin_filter'=>true,
                                'use_buildin_refresh'=>true                                
                        )
        );
    }
    public function import()
    {
        kernel::log("importvalidwarranties");
        $this->page( "admin/validwarranties/warranty_import.html");
    }
    
}
?>